package com.major.mytomcat.servlet;

import com.major.mytomcat.Request;
import com.major.mytomcat.Response;

public class HttpServlet extends GenericServlet {
    @Override
    public void service(Request request, Response response) {
        if ("GET".equals(request.getType())){
            doGet(request,response);
        }else if("POST".equals(request.getType())){
            dpPost(request,response);
        }


    }

    public void doGet(Request request, Response response) {

    }

    public void dpPost(Request request, Response response) {

    }
}
